package com.zc.operator.mapper;

import com.zc.operator.domain.ChargeStationPriceTactics;
import java.util.Date;
import java.util.List;import java.util.Map;
import org.apache.ibatis.annotations.Param;

public interface ChargeStationPriceTacticsMapper {
    int insert(ChargeStationPriceTactics record);

    int insertSelective(ChargeStationPriceTactics chargeStationPriceTactics);

    int insertList(@Param("list") List<ChargeStationPriceTactics> list);

    List<ChargeStationPriceTactics> selectByAll(ChargeStationPriceTactics chargeStationPriceTactics);

    ChargeStationPriceTactics selectById(@Param("id") Long id);

    int deleteById(@Param("id") Long id);

    int modifyById(ChargeStationPriceTactics updated);

    List<Map<String, Object>> getList(ChargeStationPriceTactics chargeStationPriceTactics);

    Long hasDefault(String stationCode);

    List<Long> checkDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("stationCode") String stationCode,@Param("id")Long id);

    /**
     * 获取站点当前策略
     * */
    ChargeStationPriceTactics getStationNowTactics (ChargeStationPriceTactics chargeStationPriceTactics);

    /**
     * 根据策略获取站点停车费
     * */
    Map<String, Object> getStationStopPriceByTactics (@Param("stationCode") String stationCode);

    Map<String, Object> getStationStopPriceByTacticsDefult (@Param("stationCode") String stationCode);
}
